package com.gwq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gwq.base.AutoEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

@Data
@TableName("cm_exercises")
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class Exercises extends AutoEntity<Exercises> {

    @ApiModelProperty("习题json")
    private String exercises;

    @ApiModelProperty("答题状态(1=已答题 0=未答题)")
    private Integer exercisesStatus;

    @ApiModelProperty("习题名称")
    private String exTile;

    @ApiModelProperty("习题集得分")
    private Integer checkCount;

    @TableField(exist = false)
    private String userName;

    @ApiModelProperty("完成用时")
    private String overDate;

    @ApiModelProperty("文件名")
    private String fileName;

}
